package cn.elegent.tx.core.entity.state;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 子事务状态枚举类
 * @author wgl
 */
@Getter
@AllArgsConstructor
public enum TransactionState {
    BEGIN("子事务开始执行","BEGIN"),
    SUCCESS("子事务执行成功","SUCCESS"),
    FAIL("子事务执行失败","FAIL"),
    BEGIN_ROLL_BACK("子事务开始回滚","BEGIN_ROLL_BACK"),
    END_ROLL_BACK("子事务结束回滚","SUCCESS_ROLL_BACK"),
    ERROR_ROLL_BACK("子事务回滚失败","ERROR_ROLL_BACK"),
    ;
    private String name;

    private String state;
}